home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
globber.exe
/
MATCHTST.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-03-12
|
4KB
|
74 lines
@echo off
echo .
echo Beginning MATCHTST
echo .
echo Creating file TEST.OUT
echo .
REM The following tests should match
match test? testy > test.out
match test* test >> test.out
match tes*t test >> test.out
match *test test >> test.out
match t*s*t test >> test.out
match t*s*t tesseract >> test.out
match t?s? test >> test.out
match ?s*t psyot >> test.out
match [a-z]s*t asset >> test.out
match s[!gh]t set >> test.out
match t[a-ce]st test >> test.out
match tea[ea-c]up teacup >> test.out
match [a-fh-z]* jack >> test.out
match \i\** i*hello >> test.out
match [\[-\]] [ >> test.out
match [a-z\\] \ >> test.out
match [a-z%_] b >> test.out
match [\]] ] >> test.out
match \i?* itch >> test.out
match \i?* it >> test.out
match ?*?*?t test >> test.out
match ?*?*?*?* test >> test.out
match *\]*\**\?*\[ ]this*is?atest[ >> test.out
match [a-\\]* at >> test.out
match [a-d\\-/] c >> test.out
match *t?l*his bright-land-high-and-his >> test.out
REM The following tests should fail
match test test >> test.out
match \ test >> test.out
match tes\ test >> test.out
match t*s*t texxeract >> test.out
match t?st tst >> test.out
match test? test >> test.out
match s[!e]t set >> test.out
match [] ] >> test.out
match [ [ >> test.out
match [\[-\] [ >> test.out
match [a atest >> test.out
match [a- atest >> test.out
match [a-z atest >> test.out
match [a-]* atest >> test.out
match [a-fh-z jack >> test.out
match [a-fh-z\] jack >> test.out
match [a-fh-z] jack >> test.out
match ?*?*?t*? test >> test.out
match *????? test >> test.out
match *\ test >> test.out
match [a-e\ atest >> test.out
match [a-\ atest >> test.out
match [a-bd-\ atest >> test.out
match *?*?t? test >> test.out
match t? t >> test.out
match ??*t step >> test.out
match [a-e]*[!t eel >> test.out
match [\ test >> test.out
match \t[est test >> test.out
match ?*[] hello >> test.out
echo MATCHTST Complete
echo .